﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    public class Remark
    {
        //评论表
        private int id;//主键
        private string username;//昵称
        private string datenow;//评论时间
        private string cont;//内容
        private int userid;//外键
        private int proid;//商品id
        public Remark() { }
        public Remark(int proid)
        {
            this.Proid = proid;
        }
        public Remark(string username, string datenow, string cont, int userid, int proid)
        {
            this.username = username;
            this.datenow = datenow;
            this.cont = cont;
            this.userid = userid;
            this.proid = proid;
        }


        public Remark(int id, string username, string datenow, string cont, int userid, int proid)
        {
            this.id = id;
            this.username = username;
            this.datenow = datenow;
            this.cont = cont;
            this.userid = userid;
            this.proid = proid;
        }

        public int Id { get => id; set => id = value; }
        public string Username { get => username; set => username = value; }
        public string Datenow { get => datenow; set => datenow = value; }
        public string Cont { get => cont; set => cont = value; }
        public int Userid { get => userid; set => userid = value; }
        public int Proid { get => proid; set => proid = value; }
    }
}
